
import * as Views from '@/views'
import I001Svg from './svgs/I001.svg?react'

/** 模块字典 */
export type ModulesMap = { [key: string]: IModule };

/** 模块 */
export interface IModule {

    /** 标题 */
    label: string;

    /** 显示 */
    key: string;

    /** 组件 */
    element: JSX.Element

    /** 图标 */
    icon: React.ComponentType;
}

/** 模块字典 */
export const modules: ModulesMap = {
    'Demo1': {
        label: '例子一',
        key: 'Demo1',
        element: <Views.Demo />,
        icon: I001Svg,
    },
    'Demo2': {
        label: '例子二',
        key: 'Demo2',
        element: <Views.Demo />,
        icon: I001Svg,
    }
}